package pir.hillchen.std.mybatis.txmapper.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pir.hillchen.std.mybatis.txmapper.entity.User;
import pir.hillchen.std.mybatis.txmapper.mapper.UserMapper;
import pir.hillchen.std.mybatis.txmapper.service.UserService;

/**
 * Created by hillchen on 2017/9/28 0028.
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserById(String userId) {
        return userMapper.selectByPrimaryKey(userId);
    }
}
